import { fromJS } from 'immutable';
import * as constants from './constants';
import Utils from '../../../common/utils'

const defaultState = fromJS({
	teacherInfo: {} 
})

export default (state = defaultState, action) => {
	switch(action.type) {
		case constants.CHANGE_TEACHERINFO:
			return state.set('teacherInfo', action.value);
		default:
			return state;
	}
}